import sys
sys.path.append("..")

from ParserZS import ParserZS
from ParserZFB import ParserZFB
from ParserWX import ParserWX
from Config import *

if __name__ == "__main__":    
    inputBillsDir = sys.argv[1]
    outputFilePath = sys.argv[2]
    owner = Owner[sys.argv[3]] # Joan Ed Ollie
    parserType = ParserType[sys.argv[4]] # ZFB WX

    if parserType == ParserType.ZFB:
        ParserZFB(owner).Parse(inputBillsDir, outputFilePath)
    elif parserType == ParserType.WX:
        ParserWX(owner).Parse(inputBillsDir, outputFilePath)
